package com.hyhy.hycloud.uaa.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * Oauth2客户端实体
 *
 * @author Xuegui Yuan
 * @date 2018-09-20
 */
@Document(collection = "clients")
@Data
public class Client {
    @Id
    private String clientId;

    private String secret;

    private List<String> authorizedGrantTypes;

    private List<String> scopes;
}
